package org.byqh.dqeai.entity;

import com.easy.query.core.annotation.Column;
import com.easy.query.core.annotation.EntityFileProxy;
import com.easy.query.core.annotation.Table;
import com.easy.query.core.proxy.ProxyEntityAvailable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.byqh.dqeai.entity.proxy.EaiSysDeptProxy;

import java.time.LocalDateTime;

/**
 * 部门管理信息表 实体类。
 *
 * @author easy-query-plugin automatic generation
 * @since 1.0
 */
@Data
@Schema(name = "EaiSysDept", description = "部门管理信息表")
@Table(value = "EAI_SYS_DEPT")
@EntityFileProxy
public class EaiSysDept implements ProxyEntityAvailable<EaiSysDept, EaiSysDeptProxy> {

    /**
     * 部门唯一标识符
     */
    @Schema(description = "部门唯一标识符", requiredMode = Schema.RequiredMode.REQUIRED)
    @Column(primaryKey = true, value = "DEPT_ID")
    private String deptId;

    /**
     * 部门名称
     */
    @Schema(description = "部门名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @Column(value = "DEPT_NAME")
    private String deptName;

    /**
     * 父部门ID
     */
    @Schema(description = "父部门ID")
    @Column(value = "PARENT_ID")
    private String parentId;

    @Column(value = "DEPT_SEQ")
    private Integer deptSeq;

    /**
     * 创建日期
     */
    @Schema(description = "创建日期", example = "yyyy-MM-dd HH:mm:ss")
    @Column(value = "CREATE_DATE")
    private LocalDateTime createDate;

    @Column(value = "CREATE_USER_ID")
    private String createUserId;

    /**
     * 最后更新的日期
     */
    @Schema(description = "最后更新的日期", example = "yyyy-MM-dd HH:mm:ss")
    @Column(value = "UPDATE_DATE")
    private LocalDateTime updateDate;

    @Column(value = "UPDATE_USER_ID")
    private String updateUserId;
}
